package com.example.win.android_banduyujia.http.request;

import com.example.win.android_banduyujia.http.UrlContext;

import java.util.Map;

/**
 * Created by Win on 2015/9/23.
 */
public class ResetPasswordRequest extends BaseHttpRequest {
    public static final String URL = UrlContext.Url_RESETPASSWORDCODE.getContext();

    private String cellphone;
    private String verify_code;
    private String new_password;

    public ResetPasswordRequest(String mobile, String code, String password) {
        cellphone = mobile;
        verify_code = code;
        new_password = password;
    }

    @Override
    protected String toRequestURL() {
        return URL;
    }

    @Override
    protected String toHttpMethod() {
        return HTTP_METHOD_POST;
    }

    @Override
    protected void toHttpRequestParams(Map<String, String> params) {
        params.put("cellphone", cellphone);
        params.put("verify_code", verify_code);
        params.put("new_password", new_password);
    }
}
